package com.example.x.dnuifood_929dx.controller;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.example.x.dnuifood_929dx.R;

/**
 * Created by X on 2018/12/4.
 */

public class SettingActivity extends AppCompatActivity {

    private ImageView setting_return;
    private LinearLayout setting_login;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
        initViews();
        initEvents();
    }

    private void initViews() {
        setting_return = (ImageView) findViewById(R.id.setting_return);
        setting_login = (LinearLayout) findViewById(R.id.setting_login);
    }

    private void initEvents() {
        setting_return.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }


        });

        setting_login.setOnClickListener(new View.OnClickListener() { @Override
        public void onClick(View v) {
            Intent intent = new Intent(SettingActivity.this,LoginActivity.class);
            startActivity(intent);
        } });
    }

}